﻿using NHibernate.Mapping;
using NHibernate.Mapping.Attributes;
using System;
using System.Xml.Serialization;

namespace IceZero.DataStore.Models
{
    //[Class(Table = "IceZero_SCourse")]
    [Serializable]
    public class SCourse : ModelBase
    {
        public SCourse():base(genIdAuto:true)
        {

        }
        /// <summary>
        /// 编号
        /// </summary>
        [Property(Column = "Code")]
        public virtual long Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Property(Column = "Name")]
        public virtual string Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Property(Column = "Sex")]
        public virtual string Teacher { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Property(Column = "Weight")]
        public virtual float Term { get; set; }

        /// <summary>
        /// 学时
        /// </summary>
        [Property(Column = "Weight")]
        public virtual float Period { get; set; }

        /// <summary>
        /// 学分
        /// </summary>
        [Property(Column = "Credit")]
        public virtual float Credit { get; set; }
    }
}
